package models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import play.db.jpa.Model;

@Inheritance(strategy=InheritanceType.JOINED)
@Entity
public class Journey extends Model {
	
	@ManyToOne
	private User user;

	private String departurestate;
	private String departuretownn;
	private String departurestreet;
	private Date departuredate;
	private String departurehour;
	
	private String arrivestate;
	private String arrivetownn;
	private String arrivestreet;
	
	private String journeynotes;
	
	private boolean priceshare;
	
	

	public Journey(User user, String departurestate, String departuretownn,
			String departurestreet, Date departuredate, String departurehour,
			String arrivestate, String arrivetownn, String arrivestreet,
			String journeynotes, boolean priceshare) {
		super();
		this.user = user;
		this.departurestate = departurestate;
		this.departuretownn = departuretownn;
		this.departurestreet = departurestreet;
		this.departuredate = departuredate;
		this.departurehour = departurehour;
		this.arrivestate = arrivestate;
		this.arrivetownn = arrivetownn;
		this.arrivestreet = arrivestreet;
		this.journeynotes = journeynotes;
		this.priceshare = priceshare;
	}


	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getDeparturestate() {
		return departurestate;
	}

	public void setDeparturestate(String departurestate) {
		this.departurestate = departurestate;
	}

	public String getDeparturetownn() {
		return departuretownn;
	}

	public void setDeparturetownn(String departuretownn) {
		this.departuretownn = departuretownn;
	}

	public String getDeparturestreet() {
		return departurestreet;
	}

	public void setDeparturestreet(String departurestreet) {
		this.departurestreet = departurestreet;
	}

	public Date getDeparturedate() {
		return departuredate;
	}

	public void setDeparturedate(Date departuredate) {
		this.departuredate = departuredate;
	}

	public String getDeparturehour() {
		return departurehour;
	}

	public void setDeparturehour(String departurehour) {
		this.departurehour = departurehour;
	}

	public String getArrivestate() {
		return arrivestate;
	}

	public void setArrivestate(String arrivestate) {
		this.arrivestate = arrivestate;
	}

	public String getArrivetownn() {
		return arrivetownn;
	}

	public void setArrivetownn(String arrivetownn) {
		this.arrivetownn = arrivetownn;
	}

	public String getArrivestreet() {
		return arrivestreet;
	}

	public void setArrivestreet(String arrivestreet) {
		this.arrivestreet = arrivestreet;
	}

	public String getJourneynotes() {
		return journeynotes;
	}

	public void setJourneynotes(String journeynotes) {
		this.journeynotes = journeynotes;
	}

	public boolean isPriceshare() {
		return priceshare;
	}

	public void setPriceshare(boolean priceshare) {
		this.priceshare = priceshare;
	}

}
